public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        MySingleList.ListNode node1 = new MySingleList.ListNode(1);
        MySingleList.ListNode node2 = new MySingleList.ListNode(2);
        MySingleList.ListNode node3 = new MySingleList.ListNode(3);
        MySingleList.ListNode node4 = new MySingleList.ListNode(4);
        MySingleList.ListNode node5 = new MySingleList.ListNode(5);
        MySingleList.ListNode node6 = new MySingleList.ListNode(6);


        node1.next = node2;
        node2.next = node3;
        node3.next = node4;
        node4.next = node5;
        node5.next = node6;

        MySingleList.ListNode head = node1;
        MySingleList.ListNode newHead = mySingleList.removeElements1(head,6);
        mySingleList.show(newHead);

        MySingleList.ListNode newHead2 = mySingleList.removeElements2(head,6);
        mySingleList.show(newHead2);

        MySingleList.ListNode newHead3 = mySingleList.removeElements3(head,6);
        mySingleList.show(newHead3);

        MySingleList.ListNode newHead4 = mySingleList.reverseList1(head);
        mySingleList.show(newHead4);

        /*MySingleList.ListNode newHead5 = mySingleList.reverseList2(head);
        mySingleList.show(newHead5);*/



    }
}
